package com.ruoyi.project.domain;

import java.util.Date;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 派单对象 order_dispatch
 * 
 * @author phil
 * @date 2020-05-31
 */
public class OrderDispatch extends BaseEntity{
	private static final long serialVersionUID = 1L;

	/** 订单Id */
	private Long orderId;

	/** 派单名称(合同名称+里程碑名称） */
	@Excel(name = "派单名称(合同名称+里程碑名称）")
	private String orderName;

	/** 合同里程碑 */
	@Excel(name = "合同里程碑")
	private Long conProcessId;

	/** 可派单表主键 **/
	@Excel(name = "可派单Id")
	private Long preOrderId;

	/** 派单人id */
	@Excel(name = "派单人id")
	private Long dispatchUserId;

	/** 派单人姓名 */
	@Excel(name = "派单人姓名")
	private String dispatchUserName;

	/** 派单时间 */
	@Excel(name = "派单时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date dispatchTime;

	/** 实际派发催收比例 */
	@Excel(name = "实际派发催收比例")
	private Double collectibleRatio;

	/** 接收人姓名 */
	@Excel(name = "接收人姓名")
	private String receiveUserName;

	/** 接收人id */
	@Excel(name = "接收人id")
	private Long receiveUserId;

	/** 接单时间 */
	@Excel(name = "接单时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date receiveTime;

	/** 派单状态（0：待接单；1：待维护回款计划；2：已退单；4、办结流程审批中；5、已办结；6、抢单） */
	@Excel(name = "派单状态", readConverterExp = "0=：待接单；1：待维护回款计划；2：已退单；3、双周状态；4、办结流程审批中；5、已办结；6.抢单；")
	private String orderStatus;

	/** 最后一次接收状态变更时间（通过此字段+status能够与日志一对一） */
	@Excel(name = "最后一次接收状态变更时间", readConverterExp = "通=过此字段+status能够与日志一对一")
	private Date lastReceiveStatusTime;

	/** 回款计划时间 */
	private Date planTime;
	/** 提交审批时间 */
	private Date approvalTime;
	/** 部门PMO审批人员ID */
	private Long deptApprovalUserId;
	/** 部门PMO审批人员名称 */
	private String deptApprovalUserName;
	/** 公司PMO审批人员ID */
	private Long companyApprovalUserId;
	/** 公司PMO审批人员名称 */
	private String companyApprovalUserName;
	/** 审批完成时间 */
	private Date approvalEndTime;

	public Date getPlanTime(){
		return planTime;
	}

	public void setPlanTime(Date planTime){
		this.planTime = planTime;
	}

	public Date getApprovalTime(){
		return approvalTime;
	}

	public void setApprovalTime(Date approvalTime){
		this.approvalTime = approvalTime;
	}

	public Long getDeptApprovalUserId(){
		return deptApprovalUserId;
	}

	public void setDeptApprovalUserId(Long deptApprovalUserId){
		this.deptApprovalUserId = deptApprovalUserId;
	}

	public String getDeptApprovalUserName(){
		return deptApprovalUserName;
	}

	public void setDeptApprovalUserName(String deptApprovalUserName){
		this.deptApprovalUserName = deptApprovalUserName;
	}

	public Long getCompanyApprovalUserId(){
		return companyApprovalUserId;
	}

	public void setCompanyApprovalUserId(Long companyApprovalUserId){
		this.companyApprovalUserId = companyApprovalUserId;
	}

	public String getCompanyApprovalUserName(){
		return companyApprovalUserName;
	}

	public void setCompanyApprovalUserName(String companyApprovalUserName){
		this.companyApprovalUserName = companyApprovalUserName;
	}

	public Date getApprovalEndTime(){
		return approvalEndTime;
	}

	public void setApprovalEndTime(Date approvalEndTime){
		this.approvalEndTime = approvalEndTime;
	}

	public void setOrderId(Long orderId){
		this.orderId = orderId;
	}

	public Long getOrderId(){
		return orderId;
	}

	public void setOrderName(String orderName){
		this.orderName = orderName;
	}

	public String getOrderName(){
		return orderName;
	}

	public void setConProcessId(Long conProcessId){
		this.conProcessId = conProcessId;
	}

	public Long getConProcessId(){
		return conProcessId;
	}

	public void setDispatchUserId(Long dispatchUserId){
		this.dispatchUserId = dispatchUserId;
	}

	public Long getDispatchUserId(){
		return dispatchUserId;
	}

	public void setDispatchUserName(String dispatchUserName){
		this.dispatchUserName = dispatchUserName;
	}

	public String getDispatchUserName(){
		return dispatchUserName;
	}

	public void setDispatchTime(Date dispatchTime){
		this.dispatchTime = dispatchTime;
	}

	public Date getDispatchTime(){
		return dispatchTime;
	}

	public void setReceiveUserName(String receiveUserName){
		this.receiveUserName = receiveUserName;
	}

	public String getReceiveUserName(){
		return receiveUserName;
	}

	public void setReceiveUserId(Long receiveUserId){
		this.receiveUserId = receiveUserId;
	}

	public Long getReceiveUserId(){
		return receiveUserId;
	}

	public void setReceiveTime(Date receiveTime){
		this.receiveTime = receiveTime;
	}

	public Date getReceiveTime(){
		return receiveTime;
	}

	public void setOrderStatus(String orderStatus){
		this.orderStatus = orderStatus;
	}

	public String getOrderStatus(){
		return orderStatus;
	}

	public void setLastReceiveStatusTime(Date lastReceiveStatusTime){
		this.lastReceiveStatusTime = lastReceiveStatusTime;
	}

	public Date getLastReceiveStatusTime(){
		return lastReceiveStatusTime;
	}

	public Double getCollectibleRatio(){
		return collectibleRatio;
	}

	public void setCollectibleRatio(Double collectibleRatio){
		this.collectibleRatio = collectibleRatio;
	}

	public Long getPreOrderId(){
		return preOrderId;
	}

	public void setPreOrderId(Long preOrderId){
		this.preOrderId = preOrderId;
	}

	@Override
	public String toString(){
		return "OrderDispatch [orderId=" + orderId + ", orderName=" + orderName + ", conProcessId=" + conProcessId + ", preOrderId=" + preOrderId + ", dispatchUserId=" + dispatchUserId + ", dispatchUserName=" + dispatchUserName + ", dispatchTime="
				+ dispatchTime + ", collectibleRatio=" + collectibleRatio + ", receiveUserName=" + receiveUserName + ", receiveUserId=" + receiveUserId + ", receiveTime=" + receiveTime + ", orderStatus=" + orderStatus + ", lastReceiveStatusTime="
				+ lastReceiveStatusTime + ", planTime=" + planTime + ", approvalTime=" + approvalTime + ", deptApprovalUserId=" + deptApprovalUserId + ", deptApprovalUserName=" + deptApprovalUserName + ", companyApprovalUserId=" + companyApprovalUserId
				+ ", companyApprovalUserName=" + companyApprovalUserName + ", approvalEndTime=" + approvalEndTime + "]";
	}

}
